import https from '@/plugins/luch-request_0.0.7/request'
// 工艺 ---------------------------------------------------
// 工艺分类
export const getClass = data => {
	return https.get('/apihkds/api/technology/select_list', data)
}

// 工艺管理列表总数
export const getListTotal = data => {
	return https.get('/apihkds/api/technology/total', data)
}

// 工艺上架列表
export const getOnList = data => {
	return https.get('/apihkds/api/technology/put_on_list', data)
}

// 工艺下架列表
export const getOffList = data => {
	return https.get('/apihkds/api/technology/put_off_list', data)
}

// 工艺公共库列表
export const getPubliclist = data => {
	return https.get('/apihkds/api/technology/publiclist', data)
}

// 工艺公共库上架
export const publicPutOn = data => {
	return https.post('/apihkds/api/technology/add', data)
}

// 工艺上架
export const putOn = data => {
	return https.post('/apihkds/api/technology/put_on', data)
}

// 工艺下架
export const putOff = data => {
	return https.post('/apihkds/api/technology/put_off', data)
}

// 工艺置顶
export const setTop = data => {
	return https.post('/apihkds/api/technology/set_top', data)
}

// 工艺删除
export const listDel = data => {
	return https.post('/apihkds/api/technology/delete', data)
}
